home *** CD-ROM | disk | FTP | other *** search
/ Aminet 12 / Aminet 12 (1996)(GTI - Schatztruhe)[!][Jun 1996].iso / Aminet / util / batch / getsh.readme < prev    next >
Encoding:
Text File  |  1996-05-05  |  1.2 KB  |  34 lines

  1. Short:    Print user's shell (MultiUser)
  2. Author:   cmccarth@dullahan.rtc-cork.ie (Chris McCarthy)
  3. Uploader: cmccarth@dullahan.rtc-cork.ie (Chris McCarthy)
  4. Type:     util/batch
  5.  
  6. This program prints the shell of the owner of the current task (the user
  7. who runs the getsh program). I find it useful for scripts which need to
  8. know what the user's shell is, e.g., in my S:Shell-Startup I have the
  9. following lines.
  10.  
  11. IF `getsh` EQ "unix:usr/local/bin/csh"
  12.     unix:usr/local/bin/csh
  13.     endcli
  14. ENDIF
  15.  
  16. So if the user's prefered shell is csh, it will be ran, rather than the
  17. standard AmigaShell.
  18.  
  19. Legal stuff: You are free to use/modify this program for your own needs.
  20.  
  21. Requirements:
  22. This program requires MultiUser (© Copyright 1993-1994 by Geert Uytterhoeven).
  23.  
  24.  
  25. ============================= Archive contents =============================
  26.  
  27. Original  Packed Ratio    Date     Time    Name
  28. -------- ------- ----- --------- --------  -------------
  29.     5476    3645 33.4% 17-Mar-96 19:08:34 +getsh
  30.     1347     724 46.2% 17-Mar-96 19:06:34 +getsh.c
  31.      643     404 37.1% 17-Mar-96 19:18:06 +getsh.readme
  32. -------- ------- ----- --------- --------
  33.     7466    4773 36.0% 21-Mar-96 06:18:42   3 files
  34.